package demo;

public class Test
{
    public static void main(String[] args)
    {
        //目标：完成面向对象的综合小案例。
        //1，设计电影类Movie,以便创建电影对象。封装电影对象的属性：名称，主演，评分。
        //2，封装系统中的电影数据。
        Movie movies[] = new Movie[6];
        movies[0] = new Movie(1,"唐顿庄园",9.5,"唐顿·哈迪");
        movies[1] = new Movie(2,"唐顿庄园2",9.6,"唐顿·哈迪");
        movies[2] = new Movie(3,"唐顿庄园3",9.5,"唐顿·哈迪");
        movies[3] = new Movie(4,"唐顿庄园4",9.5,"唐顿·哈迪");
        movies[4] = new Movie(5,"唐顿庄园5",9.5,"唐顿·哈迪");
        movies[5] = new Movie(6,"唐顿庄园6",9.5,"唐顿·哈迪");
        //3,创建电影操作对象出来，专门负责电影数据的处理。
        MovieOperator mo = new MovieOperator(movies);
        mo.printAllMovies();
        mo.searchMovie();
    }

}
